package com.mic.yzzn.plc.web.controller.unitTest;

import com.mic.yzzn.plc.common.control.datastructure.PLCMission;
import com.mic.yzzn.plc.model.PLCStatusRequest;
import com.mic.yzzn.plc.model.Station;
import com.mic.yzzn.plc.web.controller.PLCController;

import java.util.ArrayList;

/**
 * Created by ASH on 16/5/3.
 */
public class PLCMasterTest {

    public static void main(String[] args) {

        PLCStatusRequest statusRequest = new PLCStatusRequest();
        statusRequest.setRequestType(PLCMission.PLCMissionTypeReadNormal);

        ArrayList<Station> stations = new ArrayList<>();
        stations.add(new Station("PLC", "222.201.180.253-9094-01"));
        stations.add(new Station("PLC", "125.216.232.253-9094-01"));

        statusRequest.setStationList(stations);

        PLCController controller = new PLCController();
        System.out.println(controller.queryStatus(statusRequest).getBody());

    }

}
